package cn.tianya.irock.data.idal;

import java.util.List;

import cn.tianya.irock.core.DateTime;
import cn.tianya.irock.data.model.Attachment;
import cn.tianya.irock.data.model.Site;
import cn.tianya.irock.data.model.User;

public interface IAttachmentDataProvider {

	void add(Site site, User user, Attachment atta);
	void delete(List<Integer> attids);
	
	List<Attachment> getAttachments(User user, Site site, DateTime time);
	List<Attachment> getAttachments(List<Integer> attids) ;
	Attachment getAttachment(int attId);
}
